package com.mxx.common.flow;

/**
 * @author: mxx
 * @date: 2021/12/31
 * @time: 17:27
 * @Description: 描述信息
 */
public class FlowException extends Throwable {

    private String tradeId;
    private Flow flow;
    private String methodName;
    private FlowContext context;


    public FlowException(String tradeId, Flow flow, String methodName,FlowContext context, Throwable throwable) {
        super(throwable);
        this.tradeId = tradeId;
        this.flow = flow;
        this.methodName = methodName;
        this.context = context;
    }

    public String tradeId() {
        return tradeId;
    }


    public Flow flow() {
        return flow;
    }

    public String getMethodName() {
        return methodName;
    }

    public FlowContext context() {
        return context;
    }
}
